﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using MySkiPatrolEntity;
using System.Reflection;
using MySkiPatrolBLL;

namespace MySkiPatrolWS
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together.
    public class Admin : IAdmin
    {
        PatrolBLO patrolBLO = new PatrolBLO();
        MembershipBLO memberBLO = new MembershipBLO();

        public string Version()
        {
            return Assembly.GetExecutingAssembly().GetName().Version.ToString();
        }

        public Patrols GetPatrolList()
        {
            return patrolBLO.GetPatrolList();
        }

        public Patrol GetPatrol(Patrol data)
        {
            return patrolBLO.GetPatrol(data);
        }

        public Patrol PutPatrol(Patrol data)
        {
            return patrolBLO.PutPatrol(data);
        }

        public Patrol GetMembers(Patrol data)
        {
            return memberBLO.GetMembers(data);
        }

        public Member GetMember(Member data)
        {
            return memberBLO.GetMember(data);
        }

        public Member PutMember(Member data)
        {
            return memberBLO.PutMember(data);
        }

        public IDCard PutIDCard(IDCard data)
        {
            return memberBLO.PutIDCard(data);
        }
    }
}
